<template>
  <div class="learn">
    <van-nav-bar title="已购课程"></van-nav-bar>
    <course-content-list :fetch-data="fetchData"></course-content-list>
    <layout-footer></layout-footer>
  </div>
</template>

<script>
import LayoutFooter from '@/components/LayoutFooter'
import CourseContentList from '@/components/courseContentList'
import { getPurchaseCourse } from '@/services/course'
export default {
  name: 'Learn',
  data () {
    return {
    }
  },
  components: {
    LayoutFooter,
    CourseContentList
  },
  methods: {
    fetchData () {
      return getPurchaseCourse()
    }
  }
}

</script>
<style lang='scss' scoped>
.course-content-list {
  top: 50px;
  bottom: 50px;
}
</style>
